﻿using DirectSell.Model.Money;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.User.Money
{
    /// <summary>
    /// 电子币数据接口
    /// </summary>
    public interface IVirtualMoneyRepository:IAbsRepository
    {
        /// <summary>
        /// 电子币申请
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        bool Apply(VirtualMoneyReq req);
        /// <summary>
        /// 查询申请记录
        /// </summary>
        /// <param name="usercode"></param>
        /// <returns></returns>
        Task<PagedList<VirtualMoney>> Record(string usercode, int pageindex, int pagesize);

        /// <summary>
        /// 查电子币余额
        /// </summary>
        /// <param name="usercode"></param>
        /// <returns></returns>
        decimal QueryVirtualMoney(string usercode);
    }
}
